<!DOCTYPE html>
<html>
<!-- 工厂运营类HSE合规类证书库-编辑 -->

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

</head>

<body>
    <div id="app" class="popupW100" v-cloak>
        <div>
            <img src="/static/images/Client.png" style="width:240px;height:178px;margin-left:15px;">
            <img src="/static/images/Client.png" style="width:240px;height:178px;margin-left:15px;">
        </div>
        <br>

        <el-button type="primary" class="fr" @click="parent.ListItem.dialogVisible=false">{{col.btnBack}}</el-button>
    </div>
    <script type="text/javascript">
        var app = new Vue({
            el: '#app',
            data: {
                value1: '',
                radio: '1',
                // picked : '1',
                //父业传参
                id: '',
                //获取下拉菜单frequency
                frequency: [],
                //业务表单内容
                Form: {
                    id: guidEmpty,
                    Name: '',
                    Effectivedate: '',


                },
                //表单验证
                rules: {
                    Name: [
                        verification.NotNull,
                    ],
                    Effectivedate: [
                        verification.NotNull,
                    ],



                }
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                //PDF上传成功
                pdfok: function () {
                    this.$message({
                        message: 'PDF上传成功',
                        type: 'success'
                    });
                },
                //提交数据
                onSubmitForm: function (formName) {
                    var mythis = this;
                    this.$refs[formName].validate(function (valid) {
                        //验证通过
                        if (valid) {
                            onSubmitForm(this, '/api/HSEComplianceCertificateLibraryforFactoryOperations/Save', mythis.Form);
                        } else {
                            //验证失败
                            return false;
                        }
                    });
                },
                getData: function () {
                    getData(this, '/api/HSEComplianceCertificateLibraryforFactoryOperations/get?id=' + this.id);
                    this.Form.frequency = this.Form.frequency + "";
                },
            },
            mounted: function () {

                this.id = getUrlParam("id");
                this.getData();
                //获取下拉菜单内容
                this.frequency = getDicData('56');
                //初始化数据
                // this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);

            },

        });
    </script>
</body>

</html>